package com.hankol.material.viewmodel

import com.hankol.material.bean.CreateFolderBean
import com.hankol.material.bean.FolderListBean

class HomeFolderViewModel : MaterialBaseViewModel() {

    fun exchangeDef(listBeans: List<FolderListBean>) {
        for (index in listBeans.indices) {
            if (listBeans[index].name == "默认资料夹") {
            }
        }
    }

    fun handlerData(bean: CreateFolderBean): List<FolderListBean> {
        val list = mutableListOf<FolderListBean>()
        val folderListBean = FolderListBean()
        folderListBean.id = bean.id
        folderListBean.name = bean.name
        folderListBean.utime = bean.utime
        folderListBean.uid = bean.uid
        folderListBean.fileCount = bean.fileCount
        folderListBean.ctime = bean.ctime
        list.add(folderListBean)
        return list
    }

}
